export default function (that) {
  for (let i = 0; i < that.clientList.length; i++) {
    if (that.clientList[i].interest == 1) {
      let exist = false;
      for (let j = 0; j < that.clientSelected.length; j++) {
        if (that.clientSelected[j][2] === that.clientList[i].name) {
          exist = true;
          break;
        }
      }
      if (!exist) {
        that.clientSelected.push([
          that.clientList[i].clientOffice,
          that.clientList[i].clientGroup,
          that.clientList[i].name,
        ]);
      }
    }
    that.showCascader = false;
    that.$nextTick(() => {
      that.showCascader = true;
    });
  }
  that.commit();
  console.log("selected all interested");
}